import request from '@/utils/request'
// 列表
export function GetListAPI(params) {
  return request({
    url: '/quality/quality-production-freeze/list',
    method: 'GET',
    params
  })
}

// 冻结查询
export function GetFreezeAPI(params) {
  return request({
    url: '/quality/quality-production-freeze/getFreeze',
    method: 'GET',
    params
  })
}

// 冻结
export function FreezeAPI(data) {
  return request({
    url: '/quality/quality-production-freeze/freeze',
    method: 'POST',
    data
  })
}

// 解冻
export function ThawAPI(data) {
  return request({
    url: '/quality/quality-production-freeze/thaw',
    method: 'POST',
    data
  })
}

// 品质处理
export function QualityTreatmentAPI(data) {
  return request({
    url: '/quality/quality-production-freeze/qualityTreatment',
    method: 'POST',
    data
  })
}

// 查看
export function GetDetailsAPI(data) {
  return request({
    url: '/quality/quality-production-freeze/view/' + data,
    method: 'GET'
  })
}
